<?php

namespace app\model\training;

use app\BaseModel;
use think\model\relation\HasMany;

/**
 * 培训讲座-教材类型
 */
class TrainingTextbookTypeModel extends BaseModel
{
    protected $name = 'training_textbook_type';

    /**
     * 教材
     * @return HasMany
     */
    public function TrainingTextbook(): HasMany
    {
        return $this->hasMany(TrainingTextbookModel::class, 'type_id');
    }
}